package cn.walls1717.mall.modules.ums.service.impl;

import cn.walls1717.mall.modules.ums.mapper.UmsMemberLevelMapper;
import cn.walls1717.mall.modules.ums.model.UmsMemberLevel;
import cn.walls1717.mall.modules.ums.service.UmsMemberLevelService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员等级表 服务实现类
 * @author walls1717
 * @since 2022-4-9
 */
@Service
public class UmsMemberLevelServiceImpl extends ServiceImpl<UmsMemberLevelMapper, UmsMemberLevel> implements UmsMemberLevelService {

    @Override
    public List<UmsMemberLevel> list(Integer defaultStatus) {
        LambdaQueryWrapper<UmsMemberLevel> lqw = new LambdaQueryWrapper<>();
        lqw.eq(UmsMemberLevel::getDefaultStatus,defaultStatus);
        return this.list(lqw);
    }

}
